﻿using System;
using System.Xml.Serialization;

namespace RK.Store.MetroSnake.Data
{
    [XmlType]
    public class GameScore
    {
        [XmlIgnore]
        public int ScoreIndex
        {
            get;
            set;
        }

        [XmlAttribute]
        public string PlayerName
        {
            get;
            set;
        }

        [XmlAttribute]
        public int TotalScore
        {
            get;
            set;
        }

        [XmlAttribute]
        public DateTime Date
        {
            get;
            set;
        }

        [XmlIgnore]
        public string DateFormatted
        {
            get { return this.Date.ToString(); }
        }
    }
}